package com.example.warehouse.bus.pojo.param;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.math.BigDecimal;


/**
 * 添加销售的实现类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BusSalesAddNewParam implements Serializable {

    /**
     * 顾客ID
     */
    @NotEmpty(message = "添加失败，请填写顾客名称！")
    private Long customerId;

    /**
     * 商品ID
     */
    @NotEmpty(message = "添加失败，请填写商品名称！")
    private Long goodsId;

    /**
     * 销售数量
     */
    @NotEmpty(message = "添加失败，请填写销售数量！")
    private Integer number;

    /**
     * 备注
     */
    @NotEmpty(message = "添加失败，请填写备注！")
    private String description;

    /**
     * 售出价格
     */
    @NotEmpty(message = "添加失败，请填写售出价格！")
    private BigDecimal salePrice;

    /**
     * 支付类型
     */
    @NotEmpty(message = "添加失败，请填写支付类型！")
    private String payType;
}
